
SOURCE=main.cc curl.cc

INCLUDE=header.h

OBJ=$(SOURCE:.cc=.o)

CC=g++

TARGET=multicurl

BASEFLAGS= -O2 -Wall 

CFLAGS= ${BASEFLAGS} `curl-config --cflags` 
LDFLAGS=${BASEFLAGS} `curl-config --libs` -lpthread -lncurses

all:${TARGET}

${TARGET}: ${OBJ}
	${CC} ${LDFLAGS} -o ${TARGET} ${OBJ}

install:
	install -D multicurl /usr/local/bin/multicurl

uninstall:
	rm -f /usr/local/bin/multicurl
	
clean:
	rm -f  *.o *~


%.o:    %.cc 
	${CC} ${CFLAGS} -c $< -o $@
					
